import 'package:ducafe_ui_core/ducafe_ui_core.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:toastification/toastification.dart';
import 'view/system/splash_page.dart';

void main() {
  runApp(const WinApp());
}

class WinApp extends StatelessWidget {
  const WinApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      minTextAdapt: true,
      splitScreenMode: true,
      designSize: const Size(375, 812),
      builder: (context, child) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'Vamos',
          home: const AppLaunchScreen(),
          theme: ThemeData(
            textButtonTheme: TextButtonThemeData(
              style: TextButton.styleFrom(
                textStyle: TextStyle(decoration: TextDecoration.none),
              ),
            ),
            primarySwatch: Colors.yellow,
            splashColor: Colors.transparent,
            highlightColor: Colors.transparent,
            fontFamily: GoogleFonts.poppins().fontFamily,
          ),
          builder: (context, child) {
            return ToastificationWrapper(child: child!);
          },
        );
      },
    );
  }
}
